package com.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @author Kilon
 * @date 2022/3/20
 * @apiNote
 */
@Data
public class AllTask implements Comparable<AllTask> {

    @ExcelProperty(index = 0)
    String id;
    @ExcelProperty(index = 1)
    String title;
    @ExcelProperty(index = 2)
    String info;
    @ExcelProperty(index = 3)
    String tasktype;
    @ExcelProperty(index = 4)
    String countpotato;
    @ExcelProperty(index = 5)
    String countsleep;
    @ExcelProperty(index = 6)
    String nowtype;
    @ExcelProperty(index = 7)
    String msg;
    @ExcelProperty(index = 8)
    String maketime;
    @ExcelProperty(index = 9)
    String finishtime;

    String timeType;

    @Override
    public String toString() {
        return "AllTask{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", info='" + info + '\'' +
                ", tasktype='" + tasktype + '\'' +
                ", countpotato='" + countpotato + '\'' +
                ", countsleep='" + countsleep + '\'' +
                ", nowtype='" + nowtype + '\'' +
                ", msg='" + msg + '\'' +
                ", maketime='" + maketime + '\'' +
                ", finishtime='" + finishtime + '\'' +
                '}';
    }

    @Override
    public int compareTo(AllTask o) {
        return Integer.valueOf(this.id) - Integer.valueOf(o.getId());
    }
}
